<template>
  <div>
    <h2>推荐点评</h2>
    <!-- <div class="xiangqing">
      <div class="left">
        <img src="../assets/img/19.png" alt="" />
        <p class="i1">猜你熟悉</p>
      </div>
      <div class="center">
        <p class="c1">碧桂园凤凰城天悦</p>
        <p class="c2">小区</p>
      </div>
      <div class="right">点评赚经验</div>
    </div> -->
    <div class="xiangqing" v-for="dd in dianping" :key="dd.id">
      <div class="left">
        <img :src="dd.image" />
        <p class="i1">{{ dd.i1 }}</p>
      </div>
      <div class="center">
        <p class="c1">{{ dd.c1 }}</p>
        <p class="c2">{{ dd.c2 }}</p>
      </div>
      <div class="right">{{ dd.c3 }}</div>
    </div>
  </div>
</template>
<script>
import axios from "axios";
export default {
  name: "zhuye",
  data() {
    return {
      dianping: [],
    };
  },
  created() {
    axios({
      url: "http://localhost:3000/dianping",
    }).then((res) => {
      this.dianping= res.data;
    });
  },
};
</script>
<style scoped>
h2 {
  margin-top: 0.2rem;
  margin-left: 0.2rem;
}
.xiangqing {
  display: flex;
  margin-top: 0.2rem;
  margin-left: 0.2rem;
}
.xiangqing img {
  width: 0.9rem;
  height: 0.9rem;
}
.xiangqing .i1 {
  text-align: center;
  margin-top: 0.1rem;
  color: #c2c2c2;
}
.center {
  margin-top: 0.2rem;
  margin-left: 0.15rem;
}
.center .c1 {
  font-size: 0.14rem;
}
.center .c2 {
  margin-top: 0.05rem;
  font-size: 0.14rem;
  color: #a2a2a2;
}
.right {
  width: 0.9rem;
  height: 0.3rem;
  line-height: 0.3rem;
  border: 1px solid #25af82;
  font-weight: 700;
  color: #25af82;
  text-align: center;
  margin-left: 0.25rem;
  margin-top: 0.2rem;
}
</style>